Fix some leaks of floating GVariants
authorSimon McVittie <smcv@debian.org>
Sat, 29 Oct 2016 17:47:11 +0000 (18:47 +0100)
committerAtomic Bot <atomic-devel@projectatomic.io>
Sun, 30 Oct 2016 22:11:15 +0000 (22:11 +0000)
commit24af123c533e0ba5fdb68772315436b5bb4e6720
tree810def12954d395364d9b2bde8eed48995e6bbc6
parent53f1fabfbe679f123c6cf66053e894a479c57314
Fix some leaks of floating GVariants

ostree_repo_pull_with_options() and ostree_repo_remote_change() don't
sink floating GVariant arguments, and doing so now would be an
ABI change; so don't rely on them to do so.

Leak found with valgrind memcheck.

Signed-off-by: Simon McVittie <smcv@debian.org>
Closes: #556
Approved by: cgwalters
src/ostree/ot-builtin-pull.c
src/ostree/ot-remote-builtin-add.c